From d31efce487d9357dbf06d8f14f49822c8427f99a Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Fri, 10 Nov 2017 16:35:26 +0000 Subject: [PATCH] x86/Kconfig: Options for Xen and PVH support Introduce two options. One to detect whether the binary is running on Xen, the other enables PVH ABI support. The former will be useful to PV in HVM approach. Both will be used by PV in PVH approach. Signed-off-by: Andrew Cooper Signed-off-by: Wei Liu --- xen/arch/x86/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index 7c4582922f..c0b0bcdcb3 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -117,6 +117,23 @@ config TBOOT Technology (TXT) If unsure, say Y. + +config XEN_GUEST + def_bool n + prompt "Xen Guest" + ---help--- + Support for Xen detecting when it is running under Xen. + + If unsure, say N. + +config PVH_GUEST + def_bool n + prompt "PVH Guest" + depends on XEN_GUEST + ---help--- + Support booting using the PVH ABI. + + If unsure, say N. endmenu source "common/Kconfig" -- 2.30.2